package com.ljs.respository;

import com.ljs.entity.User;

import java.util.List;

public interface UserMapper {
    public List<User> selUser(int  index,int limit);

    /**
     * 根据账号密码登录
     * @param username
     * @param
     * @return
     */
    public User selbyname(String username );
    public User selbyid(int id);
    public  boolean add(User user);
    public boolean update(User user);
    public  boolean delete(int id);
    public  int count();

}
